package br.com.tarlis.persistent.server;

public abstract class DatabaseConnection<K> {
	
	private K connection;
	
	public abstract void connect(String...params);
	
	public abstract void close();
	
	public abstract void startTransaction();
	
	public abstract void commit();
	
	public abstract void rollback();
	
	public K getConnection() {
		return connection;
	}
	
	public void setConnection(K connection) {
		this.connection = connection;
	}

}
